Skip to content

Conversation

@hnrklssn
Copy link
Member

@hnrklssn hnrklssn commented Dec 8, 2025

(cherry picked from commit 2211824)

  • Explanation:
    This reverts an optimisation that removes duplicated module imports, and adds a regression test that was broken by said optimisation.
  • Scope:
    This should not break any existing code, it is simply reverting back to previous behaviour.
  • Issues:
    rdar://164588082
  • Original PRs:
    Revert "Sema: Prefer the submodule import for access-levels diagnostics" #85468
  • Risk:
    This could cause compile times to increase.
  • Testing:
    Regression test that showed changed semantics (for a patch that should not affect semantics) has been added.
  • Reviewers:
    I did not wait for a reviewer to approve the original PR because it was reverting a change that was shown to be broken, and should have affected performance only.

…odule-imports

Revert "Sema: Prefer the submodule import for access-levels diagnostics"

(cherry picked from commit 2211824)
@hnrklssn hnrklssn requested a review from a team as a code owner December 8, 2025 23:07
@hnrklssn
Copy link
Member Author

hnrklssn commented Dec 8, 2025

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant